#ifndef SVCH_ALG_SERVICE
#define SVCH_ALG_SERVICE
#include "jni.h"
#include <math.h>
#include <map>
#include "dto/TractDTO.h"
#include "dto/SvchDTO.h"
#include "TractAlgorithmService.h"

using namespace std;

struct svchImpulseStruct{

	double voltageAplitude_A;
	double impulseIncreaseConstant_Alpha;
	double impulseFallingConstant_Beta;
	double impulseFillingFrequency_U0;
};

SVCHImpulseDTO* createSvchImpulseDTO(JNIEnv *env,jobject svchImpulseDTO);

map <double,double> createSVCHImpulse(SVCHImpulseDTO* svchImpulseDTO);
map <double,double> createTractSVCHReaction(map<double,double> svchImpulseVoltageArray,TractDTO tract1,TractDTO tract2);

double * createTractSVCHFrequencyReaction(double* tempArray,int arrLenght);
#endif